package org.jxc.constants;

import java.util.ArrayList;
import java.util.List;

import org.jxc.vo.KeyValue;

public class JXCString {

	public static final String C_TYPE       = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx01";//客户类别
	public static final String S_TYPE       = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx02";//供应商类别
	public static final String REGION       = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx03";//地区分类
	public static final String PAY_TYPE     = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx04";//支付方式
	public static final String BILL_TYPE    = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx05";//开票类型
	public static final Integer NOTINSTORE = 0; //未入库
	public static final Integer HALFINSTORE = 1; // 部分入库
	public static final Integer ALLINSTORE = 2; // 全部入库
	public static final Integer NOTAPPLY = 0; // 未提交
	public static final Integer APPLY = 1; // 已提交
	public static final Integer AUDIT = 2; // 审批通过
	public static final Integer REBACK = 3; // 驳回
	public static final Integer NOTOUTSTORE = 0; //未出库
	public static final Integer OUTSTORE = 1; //出库
	public static final Integer B_OUTSTORE = 2; //出库驳回
	
	public static final Integer NOTARRIVED = 0; //未到货
	public static final Integer ARRIVED = 1; // 到货
	
	//出库单入库单的状态
	public static final String W_CHECK = "0"; // 未审核
	public static final String T_CHECK = "1"; // 审核通过
	public static final String B_CHECK = "2"; // 审核驳回
	
	public static final List<KeyValue> STORE_STATE = new ArrayList<KeyValue>(){{
		add(new KeyValue(0, "未入库", "<font color='red'>未入库</font>"));
		add(new KeyValue(1, "已入库", "<font color='green'>已入库</font>"));
		add(new KeyValue(2, "已入库", "<font color='green'>已入库</font>"));
	}};
	public static final List<KeyValue> ARRIVE_STATE = new ArrayList<KeyValue>(){{
		add(new KeyValue(0, "未到货", "<font color='red'>未到货</font>"));
		add(new KeyValue(1, "全部到货", "<font color='green'>已到货</font>"));
	}};
	public static final List<KeyValue> AUDIT_STATE = new ArrayList<KeyValue>(){{
		add(new KeyValue(0, "未提交", "<font color='red'>未提交</font>"));
		add(new KeyValue(1, "已提交", "<font color='orange'>已提交</font>"));
		add(new KeyValue(2, "审批通过", "<font color='green'>审批通过</font>"));
		add(new KeyValue(3, "驳回", "驳回"));
	}};
}